import 'package:get/get.dart';
import 'package:nyh_motorcade_app/config/config.dart';

class CooperateController extends GetxController {
  String url = "";

  String getUrl() {
    switch (Config.env) {
      case Env.DEV:
        return "https://cooperation.nengyuanh.cn";
      case Env.DEBUG:
        return "https://cooperation.test.nengyuanh.cn";
      case Env.PRE:
        return "https://cooperation.pre.nengyuanh.cn";
      case Env.RELEASE:
        return "https://cooperation.nengyuanh.cn";
      default:
        return "https://cooperation.nengyuanh.cn";
    }
  }
}
